Skip to content

Conversation

@otsuki-at
Copy link
Contributor

@otsuki-at otsuki-at commented Sep 29, 2025

やったこと

以下の画像のようにタスクの詳細画面にタスクの状態が表示されるようにした
Screenshot from 2025-09-30 10-09-34

変更点

app/views/tasks/show.html.erb にタスクの状態の項目を追加した

@otsuki-at
Copy link
Contributor Author

修正点

  • test/models/task_test.rb に task_state_id が nil の場合に task が作成できないことを確認するテストを追加した.
  • 上記により, task.state が 空では task を作成できないことを確かめたため, app/views/tasks/show.html.erb において task.state が空の場合に対応しないようにした.

@Wistlap Wistlap merged commit 408a773 into nomlab:main Oct 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants